<!-- remove_drug.html -->

{% extends "base.html" %}

{% block content %}

<h2>药品出库</h2>

<form action="{{ url_for('remove_drug') }}" method="POST">
  <div class="form-group">
    <label for="drug_id">药品名称</label>
    <select class="form-control" id="drug_id" name="drug_id" required>
      {% for drug in drugs %}
      <option value="{{ drug[0] }}">{{ drug[1] }}</option>
      {% endfor %}
    </select>
  </div>

  <div class="form-group">
    <label for="quantity">数量</label>
    <input type="number" class="form-control" id="quantity" name="quantity" placeholder="请输入出库数量" required>
  </div>

  <div class="form-group">
    <label for="department">领用部门</label>
    <input type="text" class="form-control" id="department" name="department" placeholder="请输入领用部门" required>
  </div>

  <div class="form-group">
    <label for="person">领用人</label>
    <input type="text" class="form-control" id="person" name="person" placeholder="请输入领用人" required>
  </div>

  <div class="form-group">
    <label for="usage_date">出库时间</label>
    <input type="date" class="form-control" id="usage_date" name="usage_date" required>
  </div>

  <button type="submit" class="btn btn-primary">提交</button>
</form>

{% endblock %}
